package com.zq.设计模式23种.创建型模式.单例模式;

/**
 * @author Jiu
 * @description：懒汉式单例模式
 * @date 2020/11/24   11:01
 **/
public class SingletonL {

    private static SingletonL instanc;

    public SingletonL() {
    }

    public static SingletonL getInstance() {
        if (instanc == null) {
            instanc = new SingletonL();
        }
        return instanc;
    }

}
